class CreateUserPeople < ActiveRecord::Migration
  def self.up
    create_table :user_people do |t|
      t.references :user
      t.references :person

      t.timestamps
    end
    add_index :user_people, [:user_id, :person_id], :unique => true
  end

  def self.down
    remove_index :user_people, :column => [:user_id, :person_id]
    drop_table :user_people
  end
end
